﻿<%@ Page Title="" Language="C#" MasterPageFile="~/HeaderAndFooter.Master" AutoEventWireup="true" CodeBehind="Video.aspx.cs" Inherits="AnaGiftedProject.WebForm9" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <form id="form1" runat="server">
<!-- contentlogin--><div class="contentlogin">

<div class="profTop">
<div class="avatar"><img src="img/noimage.jpg"  style="height:150px" width="200px"/></div>

<br />

   

</div>

<div class="profContent">

<div id="sidebar">

	    <ul>
<li><a href="#">الرئيسية</a></li>
<li><a href="#">الصفحة الشخصية</a></li>	
<li><a href="#">عني</a></li>
<li><a href="#">صور</a></li>
<li><a href="#">فيديو</a></li>
<li><a href="#">الأصدقاء</a></li>
<li><a href="#">الرسائل</a></li>
<li><a href="#">لوحة التحكم</a></li>
</ul>
</div>

<div class="updates">
    <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    <asp:FileUpload ID="FileUpload2" runat="server" />
    <br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    <asp:Button ID="Button2" runat="server" Text="تحميل" Height="30px" 
        Width="100px" onclick="Button1_Click" />
    <br />
    <hr /><br /><br />
    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
        BackColor="White" BorderColor="#CCCCCC" BorderStyle="None" BorderWidth="1px" 
        CellPadding="4" DataKeyNames="Id" DataSourceID="DatabaseGifted" 
        ForeColor="Black" GridLines="Horizontal">
        <Columns>
            <asp:BoundField DataField="VideoName" HeaderText="VideoName" 
                SortExpression="VideoName" />
            <asp:BoundField DataField="VideoDescription" HeaderText="VideoDescription" 
                SortExpression="VideoDescription" />
            <asp:BoundField DataField="VideoTrack" HeaderText="VideoTrack" 
                SortExpression="VideoTrack" />
            <asp:BoundField DataField="UserId" HeaderText="UserId" 
                SortExpression="UserId" />
            <asp:BoundField DataField="DateAdd" HeaderText="DateAdd" 
                SortExpression="DateAdd" />
            <asp:ImageField DataImageUrlField="VideoTrack" 
                DataImageUrlFormatString="~/imageweb/(0)" HeaderText="video">
            </asp:ImageField>
        </Columns>
        <FooterStyle BackColor="#CCCC99" ForeColor="Black" />
        <HeaderStyle BackColor="#333333" Font-Bold="True" ForeColor="White" />
        <PagerStyle BackColor="White" ForeColor="Black" HorizontalAlign="Right" />
        <SelectedRowStyle BackColor="#CC3333" Font-Bold="True" ForeColor="White" />
        <SortedAscendingCellStyle BackColor="#F7F7F7" />
        <SortedAscendingHeaderStyle BackColor="#4B4B4B" />
        <SortedDescendingCellStyle BackColor="#E5E5E5" />
        <SortedDescendingHeaderStyle BackColor="#242121" />
    </asp:GridView>
    <asp:SqlDataSource ID="DatabaseGifted" runat="server" 
        ConnectionString="<%$ ConnectionStrings:ConnectionString %>" 
        SelectCommand="SELECT * FROM [Videos]"></asp:SqlDataSource>
    </div>


</div>
    </div>
    </form>
</asp:Content>
